gtk4.git
11 years agogdk: Remove check for source window
Carlos Garnacho [Wed, 20 Aug 2014 19:31:15 +0000 (21:31 +0200)]
gdk: Remove check for source window

This is backend dependent, on wayland there is no such source window,
not even on local DnD situations.

https://bugzilla.gnome.org/show_bug.cgi?id=697855

11 years agogdk: Add GDK_DRAG_PROTO_WAYLAND
Carlos Garnacho [Wed, 20 Aug 2014 19:03:38 +0000 (21:03 +0200)]
gdk: Add GDK_DRAG_PROTO_WAYLAND

To be used on the wayland windowing backend as the DnD protocol.

https://bugzilla.gnome.org/show_bug.cgi?id=697855

11 years agoAdwaita: make links on selected bg visible...
Lapo Calamandrei [Mon, 1 Sep 2014 17:10:50 +0000 (19:10 +0200)]
Adwaita: make links on selected bg visible...

11 years agoAdwaita: GtkFlowBox selected child styling
Lapo Calamandrei [Mon, 1 Sep 2014 15:42:46 +0000 (17:42 +0200)]
Adwaita: GtkFlowBox selected child styling

11 years agoinspector: Prevent looping when picking widgets
Matthias Clasen [Sat, 30 Aug 2014 14:33:28 +0000 (10:33 -0400)]
inspector: Prevent looping when picking widgets

What was happening that the button press event that we use
to select a widget caused another clicked signal emission of
the inspect button, starting another pick action.

11 years agoAdwaita: move the header-bar fill in a mixin.
Lapo Calamandrei [Mon, 1 Sep 2014 15:31:36 +0000 (17:31 +0200)]
Adwaita: move the header-bar fill in a mixin.

11 years agol10n: Update Japanese translation
Jiro Matsuzawa [Mon, 1 Sep 2014 14:29:05 +0000 (23:29 +0900)]
l10n: Update Japanese translation

11 years agoAdwaita: set padding to 0 for tab buttons
Lapo Calamandrei [Mon, 1 Sep 2014 14:27:34 +0000 (16:27 +0200)]
Adwaita: set padding to 0 for tab buttons

11 years agoGTK MSVC Projects: Fix Include Directories
Chun-wei Fan [Mon, 1 Sep 2014 05:14:11 +0000 (13:14 +0800)]
GTK MSVC Projects: Fix Include Directories

Somehow the project files looked for includes in gdk/ before gtk/, which
is wrong.  Fix that.

11 years agogtkcairoblur: Relicense under LGPL
Jasper St. Pierre [Mon, 1 Sep 2014 02:46:15 +0000 (19:46 -0700)]
gtkcairoblur: Relicense under LGPL

Both Owen Taylor and I, the originators of this code, allow the code
herein be relicensed to the LGPL, which is what GTK+ ships with. This
prevents GTK+ from being GPL-only.

11 years agocssshadowvalue: Fix whitespace
Jasper St. Pierre [Fri, 29 Aug 2014 19:54:01 +0000 (12:54 -0700)]
cssshadowvalue: Fix whitespace

11 years agoUpdated Greek translation
Maria Mavridou [Sat, 30 Aug 2014 21:55:24 +0000 (21:55 +0000)]
Updated Greek translation

11 years agoAdwaita: special case checks/radios on selected bg
Lapo Calamandrei [Sat, 30 Aug 2014 12:27:10 +0000 (14:27 +0200)]
Adwaita: special case checks/radios on selected bg

Add yet another set of checks and radios assets used in selected
treeview cells and selected list-rows, the standard dark variant assets
work well in those cases so no need for special casing there.

11 years agoGtkTreeView: Don't hardcode black for tree lines
Matthias Clasen [Sat, 30 Aug 2014 06:12:41 +0000 (02:12 -0400)]
GtkTreeView: Don't hardcode black for tree lines

Use the left border color for tree lines. This is similar to
our use of top border color for grid lines. As a side-effect,
tree lines now get recolored when they are in a selected row.

https://bugzilla.gnome.org/show_bug.cgi?id=415415

11 years agoGtkTreeModelFilter: Documentation improvement
Matthias Clasen [Sat, 30 Aug 2014 05:59:05 +0000 (01:59 -0400)]
GtkTreeModelFilter: Documentation improvement

Clarify in the docs that some functions can only be called
once for a given filter model.

https://bugzilla.gnome.org/show_bug.cgi?id=346886

11 years agoAdd a testcase for counting selection in treeviews
Matthias Clasen [Sat, 30 Aug 2014 05:44:20 +0000 (01:44 -0400)]
Add a testcase for counting selection in treeviews

https://bugzilla.gnome.org/show_bug.cgi?id=702957

11 years agotreeview tests: Clean up after each test
Matthias Clasen [Sat, 30 Aug 2014 05:46:06 +0000 (01:46 -0400)]
treeview tests: Clean up after each test

It is not good form to leak in testcases.

11 years agotreeview tests: Add bug references
Matthias Clasen [Sat, 30 Aug 2014 05:34:10 +0000 (01:34 -0400)]
treeview tests: Add bug references

11 years agoDon't return from a void function
Matthias Clasen [Sat, 30 Aug 2014 04:53:35 +0000 (00:53 -0400)]
Don't return from a void function

And don't return the value of void functions, either.

11 years agoTrivial formatting fix
Matthias Clasen [Sat, 30 Aug 2014 04:53:21 +0000 (00:53 -0400)]
Trivial formatting fix

11 years agoUpdated POTFILES.in
Piotr Drąg [Sat, 30 Aug 2014 00:43:13 +0000 (02:43 +0200)]
Updated POTFILES.in

11 years agoMove gtkthemingengine to deprecated directory
Matthias Clasen [Fri, 29 Aug 2014 20:33:37 +0000 (16:33 -0400)]
Move gtkthemingengine to deprecated directory

This is the place for wholly-deprecated sources.

11 years agoGtkAboutDialog: Add formatting examples to the docs
Matthias Clasen [Fri, 29 Aug 2014 19:11:11 +0000 (15:11 -0400)]
GtkAboutDialog: Add formatting examples to the docs

We were not very explicit about the expected format for links
and email addresses in the strings, so give some explicit examples.

11 years agoAdwaita: no edge hilight for checks and radios in list-rows
Lapo Calamandrei [Fri, 29 Aug 2014 17:47:38 +0000 (19:47 +0200)]
Adwaita: no edge hilight for checks and radios in list-rows

11 years agoBump wayland dep to 1.5.91
Matthias Clasen [Fri, 29 Aug 2014 15:35:21 +0000 (11:35 -0400)]
Bump wayland dep to 1.5.91

This release has the new key repeat listener that we are using.

11 years agoAdwaita: titlebutton are flat image-buttons
Lapo Calamandrei [Fri, 29 Aug 2014 14:52:21 +0000 (16:52 +0200)]
Adwaita: titlebutton are flat image-buttons

Hence treat them like those, a bunch of special case styling
removed, which also doesn't override selection mode buttons
styling.

11 years agoAdwaita: style GtkLabel.separator
Lapo Calamandrei [Fri, 29 Aug 2014 13:32:45 +0000 (15:32 +0200)]
Adwaita: style GtkLabel.separator

Fixes gnome-document search popup titles.

11 years agoAdwaita: avoid text in buttons being overridden by GtkLabel style
Lapo Calamandrei [Fri, 29 Aug 2014 12:49:54 +0000 (14:49 +0200)]
Adwaita: avoid text in buttons being overridden by GtkLabel style

11 years agoGtkAboutDialog: Support https in links
Matthias Clasen [Fri, 29 Aug 2014 04:51:39 +0000 (00:51 -0400)]
GtkAboutDialog: Support https in links

https://bugzilla.gnome.org/show_bug.cgi?id=680067

11 years agoAdwaita: pathbar whitespace
Jakub Steiner [Fri, 29 Aug 2014 00:41:33 +0000 (02:41 +0200)]
Adwaita: pathbar whitespace

- optically center icons + labels vertically. It isn't actually
  centered, but feels more balanced
- add some left/right padding

https://bugzilla.gnome.org/show_bug.cgi?id=734753

11 years agoAdd a release note about X without render
Matthias Clasen [Fri, 29 Aug 2014 03:01:18 +0000 (23:01 -0400)]
Add a release note about X without render

This reflects the findings in
https://bugzilla.gnome.org/show_bug.cgi?id=735294

11 years agoGtkHeaderBar: Update separator visibility when needed
Matthias Clasen [Fri, 29 Aug 2014 02:54:18 +0000 (22:54 -0400)]
GtkHeaderBar: Update separator visibility when needed

We need to be a little more forthcoming with showing and hiding
the separators - their visibility now depends on the the visibility
and pack type of the regular headerbar children. This was observed
in gnome-contacts, where headerbar buttons are shown and hidden.

11 years agoGtkDialog: Keep special-casing help buttons
Matthias Clasen [Fri, 29 Aug 2014 00:58:27 +0000 (20:58 -0400)]
GtkDialog: Keep special-casing help buttons

We used to move help buttons to the secondary position regardless
how they were added to the action area. Keep doing that, to avoid
breaking existing dialogs that rely on this behavior.

https://bugzilla.gnome.org/show_bug.cgi?id=735119

11 years agoAdwaita: bring the separator back for dialog buttons
Jakub Steiner [Fri, 29 Aug 2014 00:14:16 +0000 (02:14 +0200)]
Adwaita: bring the separator back for dialog buttons

- separators got nuked during lapo's border cleanup

11 years agomenubutton: dismiss menu/popover when toggling programmatically
Paolo Borelli [Wed, 27 Aug 2014 19:36:08 +0000 (21:36 +0200)]
menubutton: dismiss menu/popover when toggling programmatically

https://bugzilla.gnome.org/show_bug.cgi?id=735545

11 years agoAdwaita: dim menu checks/radios a bit
Lapo Calamandrei [Thu, 28 Aug 2014 18:33:37 +0000 (20:33 +0200)]
Adwaita: dim menu checks/radios a bit

11 years agoquartz: Get default font size from user font
Jesse van den Kieboom [Sun, 24 Aug 2014 12:08:57 +0000 (14:08 +0200)]
quartz: Get default font size from user font

https://bugzilla.gnome.org/show_bug.cgi?id=735321

11 years agoAdwaita: nicer transition for flat buttons.
Lapo Calamandrei [Thu, 28 Aug 2014 16:38:46 +0000 (18:38 +0200)]
Adwaita: nicer transition for flat buttons.

11 years agoUpdated Hebrew properties translation
Yosef Or Boczko [Thu, 28 Aug 2014 14:57:51 +0000 (17:57 +0300)]
Updated Hebrew properties translation

11 years agoscrolledwindow: Be smarter at invalidating overshoot areas
Carlos Garnacho [Sun, 27 Jul 2014 11:39:51 +0000 (13:39 +0200)]
scrolledwindow: Be smarter at invalidating overshoot areas

The previous way to invalidate was meant to work on the overshoot window
so it wouldn't be as taxing. Since the overshoot window is gone, this
would invalidate way more than intended. So constrain invalidated areas
to the sides where overshoot is happenning at that moment.

https://bugzilla.gnome.org/show_bug.cgi?id=735223

11 years agotooltip: Use subsurfaces on wayland
Carlos Garnacho [Fri, 22 Aug 2014 11:13:50 +0000 (13:13 +0200)]
tooltip: Use subsurfaces on wayland

This places tooltips in the right place, and avoids having those attempt
to steal the focus.

https://bugzilla.gnome.org/show_bug.cgi?id=735531

11 years agoAdwaita: border rationalization and cleanup
Lapo Calamandrei [Thu, 28 Aug 2014 13:42:17 +0000 (15:42 +0200)]
Adwaita: border rationalization and cleanup

Rely only on border-style for border, take out border-width and
border-style from drawing functions.

11 years agocss: Implement font-stretch
Emmanuele Bassi [Thu, 28 Aug 2014 11:50:49 +0000 (12:50 +0100)]
css: Implement font-stretch

The font-stretch CSS property is defined in the Level 3 CSS Fonts
module, available at:

  http://dev.w3.org/csswg/css-fonts/#propdef-font-stretch

It allows defining a normal, condensed, or expanded face to the font
description. Pango already supports it, so this is literally just the
CSS parser machinery needed to bridge our CSS to the FontDescription
API.

https://bugzilla.gnome.org/show_bug.cgi?id=735593

11 years agoAdwaita: take named colors out of _colors.scss
Lapo Calamandrei [Thu, 28 Aug 2014 11:21:14 +0000 (13:21 +0200)]
Adwaita: take named colors out of _colors.scss

To be able to use sass for shipped css, importing _colors.scss
and _drawings.scss.

11 years agoAdwaita: rationalize font sizes.
Lapo Calamandrei [Thu, 28 Aug 2014 10:48:32 +0000 (12:48 +0200)]
Adwaita: rationalize font sizes.

...making GtkSwitch font-size relative in the process.

11 years agotheme: Specify the weight, not the font, for header bar titles
Emmanuele Bassi [Thu, 28 Aug 2014 10:17:10 +0000 (11:17 +0100)]
theme: Specify the weight, not the font, for header bar titles

Using `font: Bold` will override the font with whatever the system
resolves a `Bold` font name to, including the font's own default size.

We want the font weight to be bold, but we want the default font name
and size to come from the GtkSettings:font-name property, like we do for
the rest of the system.

11 years agoAdwaita: Make expanders turn again
Matthias Clasen [Thu, 28 Aug 2014 02:17:29 +0000 (22:17 -0400)]
Adwaita: Make expanders turn again

The theme needed some small adjustments for the recent expander
state changes ACTIVE to CHECKED.

11 years agoUse CHECKED instead of ACTIVE for expanded expanders
Benjamin Otte [Wed, 27 Aug 2014 19:25:53 +0000 (21:25 +0200)]
Use CHECKED instead of ACTIVE for expanded expanders

https://bugzilla.gnome.org/show_bug.cgi?id=733967

11 years agoconfigure: Move AC_USE_SYSTEM_EXTENSIONS up
Benjamin Otte [Wed, 27 Aug 2014 19:24:27 +0000 (21:24 +0200)]
configure: Move AC_USE_SYSTEM_EXTENSIONS up

We don't want to get warnings from autoconf about
AC_USE_SYSTEM_EXTENSIONS coming after AC_COMPILE_IFELSE.

11 years agoquartz-dnd: make sure to set source window
Jesse van den Kieboom [Wed, 27 Aug 2014 12:08:49 +0000 (14:08 +0200)]
quartz-dnd: make sure to set source window

https://bugzilla.gnome.org/show_bug.cgi?id=658722

11 years agoAdwaita: no edge hilight for popover checks/radios
Lapo Calamandrei [Wed, 27 Aug 2014 16:29:32 +0000 (18:29 +0200)]
Adwaita: no edge hilight for popover checks/radios

11 years agoreftests: Fix Makefile
Benjamin Otte [Wed, 27 Aug 2014 15:51:09 +0000 (17:51 +0200)]
reftests: Fix Makefile

with non-installed tests the build would get an empty $(reftestdir)
which would screw up the LDFLAGS.

An rpath seems to be required to make libtool build a shared object.
Without an rpath line, it only builds a static object.

https://bugzilla.gnome.org/show_bug.cgi?id=735401

11 years agogtk-demo: Don't use mad mime type guessing
Benjamin Otte [Tue, 26 Aug 2014 02:18:52 +0000 (04:18 +0200)]
gtk-demo: Don't use mad mime type guessing

... for displaying resources. Instead use the proven and way more
reliable method of trial and error.

It's less code and more portable for a start.
But most of all it displays PNM files as text if you fail to compile
the gdk-pixbuf loader for it.

11 years agomodifierstyle: Remove the changed signal
Benjamin Otte [Mon, 25 Aug 2014 14:35:11 +0000 (16:35 +0200)]
modifierstyle: Remove the changed signal

It's been unused since last commit

11 years agowidget: Don't connect to GtkModifierStyle::changed
Benjamin Otte [Mon, 25 Aug 2014 14:33:33 +0000 (16:33 +0200)]
widget: Don't connect to GtkModifierStyle::changed

Changes to the modifier style will be picked up by the
GtkStyleProviderPrivate::changed signal. And that signal will actually
invalidate properly.

11 years agowayland: Ensure the parent is committed after repositioning subsurfaces
Carlos Garnacho [Wed, 27 Aug 2014 10:03:28 +0000 (12:03 +0200)]
wayland: Ensure the parent is committed after repositioning subsurfaces

Subsurface position is deemed part of the state of the parent surface, so
ensure wl_surface_commit() happens on the parent surface if none is
scheduled, so the repositioning takes place.

11 years agotreeview: Reset multipress controller after 2nd click
Carlos Garnacho [Wed, 27 Aug 2014 12:36:53 +0000 (14:36 +0200)]
treeview: Reset multipress controller after 2nd click

The pre-gestures code used to compare the current button press with the
previous one on !activate_on_single_click, and unset the previous event
data so ::row-activated would be emitted every 2 clicks.

So do the same with the multipress gesture and reset it after every 2nd
click to have ::row-activated emitted multiple times while manic clicking.

https://bugzilla.gnome.org/show_bug.cgi?id=735353

11 years agothreads: Do not release the GDK lock if it hasn't been acquired yet
Emmanuele Bassi [Tue, 26 Aug 2014 11:15:06 +0000 (12:15 +0100)]
threads: Do not release the GDK lock if it hasn't been acquired yet

Since GLib ≥ 2.41, attempting to release an unlocked mutex will abort(),
as it happens on most systems already.

Given the lack of proper documentation on how to use GDK with threads,
there is code in the wild that does:

    gdk_threads_init ();
    gdk_init ();

    ...

    gtk_main ();

instead of the idiomatically correct:

    gdk_threads_init ();
    gdk_threads_enter ();

    gtk_init ();

    ...

    gtk_main ();

    ...

    gdk_threads_leave ();

Which means that gtk_main() will try to release the GDK lock, and thus
trigger an error from GLib.

we cannot really fix all the wrong code everywhere, and since it does
not cost us anything, we can work around the issue inside GDK itself, by
trying to acquire the GDK lock inside gdk_threads_leave() with
trylock().

https://bugzilla.gnome.org/show_bug.cgi?id=735428

11 years agobuild: make reftests work without installed tests
Benjamin Otte [Mon, 25 Aug 2014 18:39:10 +0000 (20:39 +0200)]
build: make reftests work without installed tests

The libreftest.so module needs to be built in all cases.
Without installed tests, it needs to not be installed though.

https://bugzilla.gnome.org/show_bug.cgi?id=735401

11 years agoCleanup invalid comments (duplication of words)
Ikey Doherty [Sun, 24 Aug 2014 00:26:36 +0000 (01:26 +0100)]
Cleanup invalid comments (duplication of words)

https://bugzilla.gnome.org/show_bug.cgi?id=735301

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
11 years agobutton: Track gesture point to maintain priv->in_button
Carlos Garnacho [Wed, 20 Aug 2014 18:12:35 +0000 (20:12 +0200)]
button: Track gesture point to maintain priv->in_button

This makes the active state work invariably with both mouse/touch, and
regardless of X11 pointer emulation being friendly and sending crossing
events for the emulated pointer events in the latter.

This makes GtkButtons' active state look correct when pressing on
touchscreens on wayland.

https://bugzilla.gnome.org/show_bug.cgi?id=731380

11 years agoentrycompletion: Mark popup window as subsurface on wayland
Carlos Garnacho [Thu, 21 Aug 2014 15:36:45 +0000 (17:36 +0200)]
entrycompletion: Mark popup window as subsurface on wayland

This will make the completion window use GDK_WINDOW_SUBSURFACE and be
shown relative to the parent window without involving compositor grabs.

https://bugzilla.gnome.org/show_bug.cgi?id=695504

11 years agogtkwindow: Add private API to mark as subsurface
Carlos Garnacho [Thu, 21 Aug 2014 15:34:09 +0000 (17:34 +0200)]
gtkwindow: Add private API to mark as subsurface

This is a rather hackish way to let GTK+ widgets declare popup windows
as subsurfaces, so they may work on wayland without the need of xdg_popup,
and without many changes yet on the GTK+ side.

https://bugzilla.gnome.org/show_bug.cgi?id=695504

11 years agoAdwaita: menu checks and radios making sense
Lapo Calamandrei [Tue, 26 Aug 2014 18:32:36 +0000 (20:32 +0200)]
Adwaita: menu checks and radios making sense

11 years agoAdwaita: set a background for GtkTextView
Lapo Calamandrei [Tue, 26 Aug 2014 17:54:41 +0000 (19:54 +0200)]
Adwaita: set a background for GtkTextView

Needed for gedit line numbers, overridden by .view {} normally

11 years agoAdwaita: minor fixes to GtkLabel
Lapo Calamandrei [Tue, 26 Aug 2014 17:24:44 +0000 (19:24 +0200)]
Adwaita: minor fixes to GtkLabel

11 years agoAdwaita: take rtl into consideration for GtkAssistant
Lapo Calamandrei [Tue, 26 Aug 2014 16:02:28 +0000 (18:02 +0200)]
Adwaita: take rtl into consideration for GtkAssistant

11 years agoAdwaita: GtkAssistant tweakings
Lapo Calamandrei [Tue, 26 Aug 2014 15:51:45 +0000 (17:51 +0200)]
Adwaita: GtkAssistant tweakings

11 years agoAdwaita: treeview checks/radios minor fix
Lapo Calamandrei [Tue, 26 Aug 2014 14:56:22 +0000 (16:56 +0200)]
Adwaita: treeview checks/radios minor fix

Superfluous icon shadow in checked hover state removed.

11 years agoAdwaita: in app notification fixes
Lapo Calamandrei [Tue, 26 Aug 2014 14:54:19 +0000 (16:54 +0200)]
Adwaita: in app notification fixes

11 years agoscalebutton: Handle smooth scroll events
Carlos Garnacho [Fri, 22 Aug 2014 17:15:57 +0000 (19:15 +0200)]
scalebutton: Handle smooth scroll events

This has the double effect to make scale button truly smooth, and make
scrolling work on wayland, since all scrolling is "smooth" there.

https://bugzilla.gnome.org/show_bug.cgi?id=720269

11 years agowayland: Fix x/y coordinate arguments on wl_data_device events
Carlos Garnacho [Thu, 21 Aug 2014 17:01:32 +0000 (19:01 +0200)]
wayland: Fix x/y coordinate arguments on wl_data_device events

Those are wl_fixed_t, not int.

https://bugzilla.gnome.org/show_bug.cgi?id=697855

11 years agowayland: ensure gdk_device_manager_get_client_pointer() returns a master pointer
Carlos Garnacho [Wed, 13 Aug 2014 19:16:39 +0000 (21:16 +0200)]
wayland: ensure gdk_device_manager_get_client_pointer() returns a master pointer

The internal ordering of devices isn't quite guaranteed, so ensure we're returning
the right one.

https://bugzilla.gnome.org/show_bug.cgi?id=697855

11 years agoRevert "Adwaita: notebook background"
Jakub Steiner [Tue, 26 Aug 2014 11:46:54 +0000 (13:46 +0200)]
Revert "Adwaita: notebook background"

Not a good solution to the problem at hand (gedit line numbering)

This reverts commit fde03c1f8174a16120264eb689415b6f7535fc81.

11 years agowayland: unset sequence if the xdg surface is moved/resized through touch
Carlos Garnacho [Wed, 20 Aug 2014 18:23:58 +0000 (20:23 +0200)]
wayland: unset sequence if the xdg surface is moved/resized through touch

The latest implicit grab serial is used in order to start the compositor
grab, If it belongs to a touch event, remove that touch sequence, as the
rest of the sequence will be gone for good.

This avoids stale sequences (and implicit grab info) after a window is
moved/resized.

https://bugzilla.gnome.org/show_bug.cgi?id=731380

11 years agowayland: Add internal API to unset a touch implicit grab
Carlos Garnacho [Wed, 20 Aug 2014 18:22:42 +0000 (20:22 +0200)]
wayland: Add internal API to unset a touch implicit grab

This removes both the wayland specific accounting, and the Gdk implicit
grab tracking.

https://bugzilla.gnome.org/show_bug.cgi?id=731380

11 years agowayland: Update the display serial on touch down/up events
Carlos Garnacho [Wed, 20 Aug 2014 18:52:39 +0000 (20:52 +0200)]
wayland: Update the display serial on touch down/up events

https://bugzilla.gnome.org/show_bug.cgi?id=734374

11 years agowayland: Improve implicit grab serial retrieval
Carlos Garnacho [Wed, 13 Aug 2014 19:05:58 +0000 (21:05 +0200)]
wayland: Improve implicit grab serial retrieval

_gdk_wayland_device_get_button_press_serial() has been replaced by
_gdk_wayland_device_get_implicit_grab_serial(), which takes a touch/pointer
event and figures out the relevant serial, and
_gdk_wayland_device_get_last_implicit_grab_serial() which returns
the most recent serial.

The button press serial was currently used when operating popping up
xdg_shell/surface popups and window menus, so this is now touch aware, of
some sort.

https://bugzilla.gnome.org/show_bug.cgi?id=734374

11 years agowayland: Store per-touch touch_down serial
Carlos Garnacho [Wed, 13 Aug 2014 19:05:12 +0000 (21:05 +0200)]
wayland: Store per-touch touch_down serial

https://bugzilla.gnome.org/show_bug.cgi?id=734374

11 years agowayland: rename internal touch management functions
Carlos Garnacho [Wed, 13 Aug 2014 18:59:20 +0000 (20:59 +0200)]
wayland: rename internal touch management functions

These functions arent quite related to the device manager, so rename these
more conveniently.

https://bugzilla.gnome.org/show_bug.cgi?id=734374

11 years agowayland: Protect against invalid keymaps gotten from the compositor
Carlos Garnacho [Mon, 25 Aug 2014 13:55:22 +0000 (15:55 +0200)]
wayland: Protect against invalid keymaps gotten from the compositor

If the compositor sends a keymap that fails on "compilation",
xkb_keymap_new_from_string() returns NULL, which makes xkb_state_new()
crash when assuming there is a keymap.

In these cases, gdk must remain with a xkb_state to handle modifiers/keys
properly, so warn about the invalid keymap string, and keep the previous
keymap (currently initialized to "us")

https://bugzilla.gnome.org/show_bug.cgi?id=735389

11 years agowayland: create a wl_subsurface interface for GDK_WINDOW_SUBSURFACE windows
Carlos Garnacho [Thu, 21 Aug 2014 15:31:50 +0000 (17:31 +0200)]
wayland: create a wl_subsurface interface for GDK_WINDOW_SUBSURFACE windows

This subsurface is currently dependent on the transient_for parent, so the
subsurface is repositioned relative to it.

https://bugzilla.gnome.org/show_bug.cgi?id=729215

11 years agowayland: Acquire wl_subcompositor interface
Carlos Garnacho [Thu, 21 Aug 2014 15:27:26 +0000 (17:27 +0200)]
wayland: Acquire wl_subcompositor interface

This will be needed for GDK_WINDOW_SUBSURFACE windows.

https://bugzilla.gnome.org/show_bug.cgi?id=729215

11 years agogdk: Add GDK_WINDOW_SUBSURFACE window type
Carlos Garnacho [Thu, 21 Aug 2014 15:26:18 +0000 (17:26 +0200)]
gdk: Add GDK_WINDOW_SUBSURFACE window type

This window type can only be used on wayland so far, so NULL is returned
if it's attempted to be used on any other windowing backend.

https://bugzilla.gnome.org/show_bug.cgi?id=729215

11 years agowayland: Make toplevels' X/Y coordinates be 0
Carlos Garnacho [Thu, 21 Aug 2014 15:39:09 +0000 (17:39 +0200)]
wayland: Make toplevels' X/Y coordinates be 0

To all effects each window has its own "root" coordinates system, so set
toplevels at 0,0 in that coordinate system, so root coordinate calculations
are locally right.

https://bugzilla.gnome.org/show_bug.cgi?id=729215

11 years agoAdwaita: notebook background
Jakub Steiner [Tue, 26 Aug 2014 10:32:05 +0000 (12:32 +0200)]
Adwaita: notebook background

11 years agoTextView: clear the background using the default bg color
Paolo Borelli [Sun, 24 Aug 2014 15:58:36 +0000 (17:58 +0200)]
TextView: clear the background using the default bg color

Try to tidy up how the background is set on the textview:
 *) the .view class should be applied only to the text window, not
    to the margins
 *) when setting the background on the margins we must use .left etc
 *) use context_set_bg instead of manually setting the color

https://bugzilla.gnome.org/show_bug.cgi?id=735368

11 years agoGtkTreeView: Avoid a crash with empty trees
Matthias Clasen [Tue, 26 Aug 2014 04:05:14 +0000 (00:05 -0400)]
GtkTreeView: Avoid a crash with empty trees

The gesture code was assuming that the rb tree exists, which
will not be the case if the treeview is empty.

https://bugzilla.gnome.org/show_bug.cgi?id=735300

11 years agoAdwaita: define styling for location-bar toolbars
Jakub Steiner [Mon, 25 Aug 2014 17:20:49 +0000 (19:20 +0200)]
Adwaita: define styling for location-bar toolbars

- same inset style as searchbars

11 years agoAdwaita: legible labels in headerbars in selection mode
Jakub Steiner [Mon, 25 Aug 2014 13:24:44 +0000 (15:24 +0200)]
Adwaita: legible labels in headerbars in selection mode

11 years agoAdwaita: selection-mode checked togglebuttons
Jakub Steiner [Mon, 25 Aug 2014 13:18:58 +0000 (15:18 +0200)]
Adwaita: selection-mode checked togglebuttons

- exposed in gnome-contacts for example.

11 years agoAdwaita: selected text in GtkLabel
Jakub Steiner [Mon, 25 Aug 2014 12:15:32 +0000 (14:15 +0200)]
Adwaita: selected text in GtkLabel

https://bugzilla.gnome.org/show_bug.cgi?id=735310

11 years agoinspector: fix a crash in the CSS editor
Sébastien Wilmet [Sun, 24 Aug 2014 18:27:13 +0000 (20:27 +0200)]
inspector: fix a crash in the CSS editor

gtk_css_section_get_end_position() can return a position one byte beyond
the end of the last line.

gtk_text_buffer_get_iter_at_line_index() accepts only valid
line_number/byte_index pairs. Another solution is to make the
GtkTextBuffer function less strict, by returning a boolean if the exact
position was found.

The CSS parser should also be fixed to always return valid positions.
But it's better to have a safety net in the CSS editor, just in case (a
warning could be print).

https://bugzilla.gnome.org/show_bug.cgi?id=735337

11 years agogdkwindow-quartz: Support native fullscreen mode
Jesse van den Kieboom [Sat, 23 Aug 2014 14:04:46 +0000 (16:04 +0200)]
gdkwindow-quartz: Support native fullscreen mode

This implements native fullscreen mode on OS X >= 10.7. This patch
adds tracking of the fullscreen mode if externally modified, as well
as toggling the native fullscreen mode of the window as needed.

11 years agoRef the popover before activating the item
Garrett Regier [Sat, 23 Aug 2014 13:55:07 +0000 (06:55 -0700)]
Ref the popover before activating the item

Otherwise the item could cause the popover to be destroyed,
for example a Quit item, and cause a warning to be printed.

11 years agoGtkAboutDialog: Drop visibility-notify-event handler
Matthias Clasen [Sat, 23 Aug 2014 05:25:35 +0000 (01:25 -0400)]
GtkAboutDialog: Drop visibility-notify-event handler

The signal is deprecated, and the handler is only helping
for a really tiny corner case anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=734961

11 years agoChange gdk-pixbuf minimum required version to 2.30.0
Ikey Doherty [Fri, 22 Aug 2014 22:31:17 +0000 (23:31 +0100)]
Change gdk-pixbuf minimum required version to 2.30.0

https://bugzilla.gnome.org/show_bug.cgi?id=735253

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
11 years agoSome release notes for 3.14
Matthias Clasen [Sat, 23 Aug 2014 03:11:11 +0000 (23:11 -0400)]
Some release notes for 3.14

11 years agoAdwaita: use osd style for in-app notifications
Jakub Steiner [Fri, 22 Aug 2014 16:16:23 +0000 (18:16 +0200)]
Adwaita: use osd style for in-app notifications

11 years agoxdg-shell: Bump version
Jasper St. Pierre [Fri, 22 Aug 2014 16:05:21 +0000 (12:05 -0400)]
xdg-shell: Bump version